﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Collections.Specialized;

namespace System.Collections.Observable.ExtendedEventArgs
{
    public static class CollectionChangedEventArgsExtensions
    {
        public static IList GetResetedItems(this NotifyCollectionChangedEventArgs eventArgs)
        {
            NotifyCollectionResetEventArgs resetEvents = eventArgs as NotifyCollectionResetEventArgs;
            if (resetEvents != null)
            {
                return resetEvents.ResetedItems;
            }

            return null;
        }
    }
}
